////////////////////////////////////////////////
// -- DepthHUD Lite                           //
// by Hurricaaane (Ha3)                       //
//                                            //
// http://www.youtube.com/user/Hurricaaane    //
//--------------------------------------------//
// Base indicator                             //
////////////////////////////////////////////////

local PANEL = {}

AccessorFunc( PANEL, "m_fRate", "Rate" )
//AccessorFunc( PANEL, "m_fText", "Text" )

function PANEL:Init()
	self:SetRate( 1 )
	//self.e_vText = vgui.Create( "DLabel", self )
	//self:SetContentAlignment( 5 )
	//self:SetFont( "DHLITE_SmallText" )
	//self:SetColor( color_white )

end

function PANEL:SetRate( fRate )
	self.m_fRate = math.Clamp( fRate, 0, 1 )
	
end

Derma_Hook( PANEL, "Paint", "Paint", "HIndicator" )
derma.DefineControl( "HIndicator", "", PANEL, "DPanel" )